package org.haredot.service;

import org.haredot.entity.Role;
import org.haredot.vo.ResultVo;

import java.util.List;

public interface RoleService {
    ResultVo<?> saveRole(Role role);

    ResultVo<?> modifyRole(Role role);

    ResultVo<?> removeRole(Long roleId);

    ResultVo<?> queryRoles();

    ResultVo<?> queryTreeNodes(Long roleId);

    ResultVo<?> bindPermission(Long roleId, List<String> nodes);
}
